#
# MAINTAINER        Carson,C.J.Zeong <zcy@nicescale.com>
# DOCKER-VERSION    1.6.2
#
# Dockerizing CentOS7: Dockerfile for building CentOS images
#
FROM       csphere/centos:7.2
MAINTAINER zhanghs<346332989@qq.com>

ADD ["jdk-7u79-linux-x64.rpm", "/opt/jdk-7u79-linux-x64.rpm"]

#install some tools
RUN yum install -y \
    wget \
    tar && \
    yum clean all && rm -rf /var/cache/yum/* && \
    chmod +x /opt/jdk-7u79-linux-x64.rpm && \
	rpm -ivh /opt/jdk-7u79-linux-x64.rpm && \
	mkdir -p /application 

COPY apache-tomcat-7.0.72 /application/apache-tomcat-7.0.72

#add user
ADD ["tomcat-users.xml", "/application/apache-tomcat-7.0.72/conf/tomcat-users.xml"]

EXPOSE 8080
CMD /application/apache-tomcat-7.0.72/bin/catalina.sh run